Optimal. Leaf size=29 \[ \frac {1}{2} \log \left (a+b x^2+x\right )-\frac {1}{2} \log \left (a+b x^2-x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {1164, 628} \begin {gather*} \frac {1}{2} \log \left (a+b x^2+x\right )-\frac {1}{2} \log \left (a+b x^2-x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 628
Rule 1164
Rubi steps
\begin {align*} \int \frac {a-b x^2}{a^2+(-1+2 a b) x^2+b^2 x^4} \, dx &=-\left (\frac {1}{2} \int \frac {\frac {1}{b}+2 x}{-\frac {a}{b}-\frac {x}{b}-x^2} \, dx\right )-\frac {1}{2} \int \frac {\frac {1}{b}-2 x}{-\frac {a}{b}+\frac {x}{b}-x^2} \, dx\\ &=-\frac {1}{2} \log \left (a-x+b x^2\right )+\frac {1}{2} \log \left (a+x+b x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 29, normalized size = 1.00 \begin {gather*} \frac {1}{2} \log \left (a+b x^2+x\right )-\frac {1}{2} \log \left (a+b x^2-x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a-b x^2}{a^2+(-1+2 a b) x^2+b^2 x^4} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.68, size = 25, normalized size = 0.86 \begin {gather*} \frac {1}{2} \, \log \left (b x^{2} + a + x\right ) - \frac {1}{2} \, \log \left (b x^{2} + a - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 25, normalized size = 0.86 \begin {gather*} \frac {1}{2} \, \log \left (b x^{2} + a + x\right ) - \frac {1}{2} \, \log \left (b x^{2} + a - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 26, normalized size = 0.90 \begin {gather*} -\frac {\ln \left (b \,x^{2}+a -x \right )}{2}+\frac {\ln \left (b \,x^{2}+a +x \right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.04, size = 25, normalized size = 0.86 \begin {gather*} \frac {1}{2} \, \log \left (b x^{2} + a + x\right ) - \frac {1}{2} \, \log \left (b x^{2} + a - x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.41, size = 12, normalized size = 0.41 \begin {gather*} \mathrm {atanh}\left (\frac {x}{b\,x^2+a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.47, size = 26, normalized size = 0.90 \begin {gather*} - \frac {\log {\left (\frac {a}{b} + x^{2} - \frac {x}{b} \right )}}{2} + \frac {\log {\left (\frac {a}{b} + x^{2} + \frac {x}{b} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________